package edu.eas.admin.service;

import edu.eas.common.dto.ClientParam;
import edu.eas.common.pojo.OauthClientDetails;

import java.util.List;

/**
 * @author cql
 */
public interface OauthClientDetailsService {
    /**
     * 获取客户端详情
     *
     * @param pageSize
     * @param pageNum
     * @param clientId
     * @param authorizedGrantTypes
     * @return
     */
    List<OauthClientDetails> getList(Integer pageSize, Integer pageNum, String clientId, String authorizedGrantTypes);

    /**
     * 获取客户端详情
     *
     * @param clientId
     * @return
     */
    OauthClientDetails getOauthClientDetailByClientId(String clientId);

    /**
     * 创建凭证
     *
     * @param param
     * @return
     */
    int create(ClientParam param);

    /**
     * 删除凭证
     *
     * @param clientId
     * @return
     */
    int delete(String clientId);

    /**
     * 更新凭证
     *
     * @param param
     * @return
     */
    int update(ClientParam param);
}
